a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
↳ QTRS
↳ DependencyPairsProof
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
MARK(first(X1, X2)) → MARK(X1)
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(from(X)) → MARK(X)
MARK(from(X)) → A__FROM(mark(X))
MARK(s(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(first(X1, X2)) → MARK(X2)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
A__FROM(X) → MARK(X)
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
MARK(first(X1, X2)) → MARK(X1)
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(from(X)) → MARK(X)
MARK(from(X)) → A__FROM(mark(X))
MARK(s(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(first(X1, X2)) → MARK(X2)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
A__FROM(X) → MARK(X)
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(first(X1, X2)) → MARK(X1)
MARK(from(X)) → MARK(X)
MARK(from(X)) → A__FROM(mark(X))
MARK(s(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X2)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
Used ordering: Polynomial interpretation [25]:
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(cons(X1, X2)) → MARK(X1)
A__FROM(X) → MARK(X)
POL(0) = 0
POL(A__FIRST(x1, x2)) = x2
POL(A__FROM(x1)) = x1
POL(MARK(x1)) = x1
POL(a__first(x1, x2)) = 1 + x1 + x2
POL(a__from(x1)) = 1 + x1
POL(cons(x1, x2)) = x1
POL(first(x1, x2)) = 1 + x1 + x2
POL(from(x1)) = 1 + x1
POL(mark(x1)) = x1
POL(nil) = 1
POL(s(x1)) = 1 + x1
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(nil) → nil
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
a__first(0, X) → nil
a__from(X) → cons(mark(X), from(s(X)))
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
mark(from(X)) → a__from(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(cons(X1, X2)) → MARK(X1)
A__FROM(X) → MARK(X)
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
MARK(cons(X1, X2)) → MARK(X1)
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__from(X) → cons(mark(X), from(s(X)))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(from(X)) → a__from(mark(X))
mark(0) → 0
mark(nil) → nil
mark(s(X)) → s(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
a__first(X1, X2) → first(X1, X2)
a__from(X) → from(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
MARK(cons(X1, X2)) → MARK(X1)
From the DPs we obtained the following set of size-change graphs: